﻿using System.Collections.Generic;
using System.Configuration;

namespace HRMSystem.Util
{
    public class ApplicationSettings
    {
        private static readonly string COMPANYSHORTNAME = "COMPANYSHORTNAME";

        public static string COMPANY_SHORT_NAME = ConfigurationManager.AppSettings[COMPANYSHORTNAME];

        public ApplicationSettings()
        {

        }

        public static IList<string> UpdateValues(string folderPath)
        {
            Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

            //config.AppSettings.Settings[ApplicationSettings.FOLDER].Value = folderPath;

            //ApplicationSettings.SCAN_FOLDER = folderPath;

            config.Save(ConfigurationSaveMode.Modified);
            ConfigurationManager.RefreshSection("appSettings");

            return null;// ValidateUtility.ValidateSettings(folderPath);
        }

    }
}
